package com.example.springboot.test;

public class ConcreteBuild implements Build{
    private Product product;

    public ConcreteBuild(){
        product=new Product();
    }


    @Override
    public void buildHeader() {
        product.setHeader("head");
    }

    @Override
    public void buildBody() {
        product.setBody("body");
    }

    @Override
    public void buildFooter() {
        product.setFooter("footer");
    }

    @Override
    public Product build() {
        return product;
    }
}
